package org.hpin.base.resource.entity;

import java.util.Set;

import org.hpin.common.core.orm.BaseEntity;

/**
 * 资源实体类
 * 
 * @author thinkpad
 * @data May 8, 2009
 */
public class Resource extends BaseEntity {

    private String id;
	/**
	 * 菜单名称
	 */
	private String name;

	/**
	 * 是否叶子节点
	 */
	private Integer isLeaf;

	/**
	 * url
	 */
	private String url;

	/**
	 * 排序
	 */
	private Integer orderCode = 1;

	/**
	 * 状态
	 */
	public Integer isEnable = null;

	/**
	 * 父菜单ID
	 */
	private String parentId;
	/**
	 * 是否单独一行
	 */
	private Integer isLine;

	/**
	 * 菜单类型(1 模块 2 非链接菜单 3 链接菜单 4 操作)
	 */
	private Integer type = null;
	
	private String iconCls = null;
	/**
	 * 是否是按钮1是，0否
	 * @return
	 */
	private Integer isButton;
	
	/**
	 * 是否在iframe展现页面1是，0否
	 * @return
	 */
	private Integer isFrame;
	
	private Set<Resource> childrenSet ;
	
	/**
	 * 非持久化属性，标识用户权限中的子菜单
	 */
	private Set<Resource> childrenList ;
	
	public Set<Resource> getChildrenList(){
		return this.childrenList ;
	}
	
	public void setChildrenList(Set<Resource> childrenList){
		this.childrenList = childrenList ;
	}
	
	public Integer getIsButton() {
		return isButton;
	}

	public void setIsButton(Integer isButton) {
		this.isButton = isButton;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getIsLeaf() {
		return isLeaf;
	}

	public void setIsLeaf(Integer isLeaf) {
		this.isLeaf = isLeaf;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getOrderCode() {
		return orderCode;
	}

	public void setOrderCode(Integer orderCode) {
		this.orderCode = orderCode;
	}

	public Integer getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(Integer isEnable) {
		this.isEnable = isEnable;
	}
	public Integer getType() {
		return type;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	public Integer getIsLine() {
		return isLine;
	}

	public void setIsLine(Integer isLine) {
		this.isLine = isLine;
	}

	public Integer getIsFrame() {
		return isFrame;
	}

	public void setIsFrame(Integer isFrame) {
		this.isFrame = isFrame;
	}
	
	public Set<Resource> getChildrenSet(){
		return childrenSet ;
	}
	
	public void setChildrenSet(Set<Resource> childrenSet){
		this.childrenSet = childrenSet ;
	}
}